﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;
using STLGROUP.Layers.Common;

namespace STLGROUP.Layers.DataAccessLayers.Validators
{
    class DM_ChucVuValidator:AbstractValidator<DM_ChucVu>
    {
        public DM_ChucVuValidator()
        {
            RuleFor(s => s.TenChucVu).NotEmpty().WithMessage(Const.VALD_PROPERTY_KHONG_BO_TRONG).WithPropertyName("Tên chức vụ");
        }
    }
}
